package itheima;

public class Demo3 {
    public static void main(String[] args) {
        int[] arr = {12, 23, 34, 45, 56, 67};
        for (int i = 0; i < arr.length; i++) {
            if (i % 2 == 0) {
                System.out.println(arr[i]);
            }
        }
    }
}

